<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		//window.navigator.userAgent => 浏览器信息
		//alert( window.navigator.userAgent )		//是字符串

		if ( window.navigator.userAgent.indexOf('MSIE') != -1) {
			alert('IE')
		}else{
			alert('not IE')
		}
	</script>
</head>
<body>
	
</body>
</html>